import { face_prop_item } from "../../shared/interface";
import { MsgAction, template, Tpl_propDefault_look } from "../../shared/master/MsgAction";
import { player, wallet_key } from "../fight/body/player";
import { prop_base } from "./prop_base";
/**
 * 小队入场券
 */
export interface face_data_prop_TeamCard {
    id: string
    key: number
    name: string
    desc: string
    instruct_sys: string
}
export class prop_TeamCard extends prop_base {
    data: face_data_prop_TeamCard;
    constructor(data: face_prop_item) {
        super(data);
        this.data = data.data;
    }
    use(tag: player, num: number): boolean {
        let data = this.data as face_data_prop_TeamCard;
        tag._callApi(`bag/function/Join_team`, {
            team_id: data.id
        })
        return true;
    }
}